package com.yiyahui.project.erp.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yiyahui.project.erp.mapper.YiyaClinicPersonMapper;
import com.yiyahui.project.erp.domain.YiyaClinicPerson;
import com.yiyahui.project.erp.service.IYiyaClinicPersonService;

/**
 * 到店患者信息Service业务层处理
 * 
 * @author yiyahui
 * @date 2020-05-08
 */
@Service
public class YiyaClinicPersonServiceImpl implements IYiyaClinicPersonService 
{
    @Autowired
    private YiyaClinicPersonMapper yiyaClinicPersonMapper;

    /**
     * 查询到店患者信息
     * 
     * @param id 到店患者信息ID
     * @return 到店患者信息
     */
    @Override
    public YiyaClinicPerson selectYiyaClinicPersonById(Long id)
    {
        return yiyaClinicPersonMapper.selectYiyaClinicPersonById(id);
    }

    /**
     * 查询到店患者信息列表
     * 
     * @param yiyaClinicPerson 到店患者信息
     * @return 到店患者信息
     */
    @Override
    public List<YiyaClinicPerson> selectYiyaClinicPersonList(YiyaClinicPerson yiyaClinicPerson)
    {
        return yiyaClinicPersonMapper.selectYiyaClinicPersonList(yiyaClinicPerson);
    }

    /**
     * 新增到店患者信息
     * 
     * @param yiyaClinicPerson 到店患者信息
     * @return 结果
     */
    @Override
    public int insertYiyaClinicPerson(YiyaClinicPerson yiyaClinicPerson)
    {
        return yiyaClinicPersonMapper.insertYiyaClinicPerson(yiyaClinicPerson);
    }

    /**
     * 修改到店患者信息
     * 
     * @param yiyaClinicPerson 到店患者信息
     * @return 结果
     */
    @Override
    public int updateYiyaClinicPerson(YiyaClinicPerson yiyaClinicPerson)
    {
        return yiyaClinicPersonMapper.updateYiyaClinicPerson(yiyaClinicPerson);
    }

    /**
     * 批量删除到店患者信息
     * 
     * @param ids 需要删除的到店患者信息ID
     * @return 结果
     */
    @Override
    public int deleteYiyaClinicPersonByIds(Long[] ids)
    {
        return yiyaClinicPersonMapper.deleteYiyaClinicPersonByIds(ids);
    }

    /**
     * 删除到店患者信息信息
     * 
     * @param id 到店患者信息ID
     * @return 结果
     */
    @Override
    public int deleteYiyaClinicPersonById(Long id)
    {
        return yiyaClinicPersonMapper.deleteYiyaClinicPersonById(id);
    }

    @Override
    public List<YiyaClinicPerson> selectByIds(List<Long> ids) {
        return yiyaClinicPersonMapper.selectByIds(ids);
    }


    @Override
    public String getPhoneByIds(String ids){
        return yiyaClinicPersonMapper.getPhoneByIds(ids);
    }
}
